import request from '@/utils/request'

// 查询账号企业关联列表
export function listUserMain(query) {
  return request({
    url: '/busi/userMain/list',
    method: 'get',
    params: query
  })
}

// 查询账号企业关联详细
export function getUserMain(id) {
  return request({
    url: '/busi/userMain/' + id,
    method: 'get'
  })
}

// 新增账号企业关联
export function addUserMain(data) {
  return request({
    url: '/busi/userMain',
    method: 'post',
    data: data
  })
}

// 修改账号企业关联
export function updateUserMain(data) {
  return request({
    url: '/busi/userMain',
    method: 'put',
    data: data
  })
}

// 删除账号企业关联
export function delUserMain(id) {
  return request({
    url: '/busi/userMain/' + id,
    method: 'delete'
  })
}

// 导出账号企业关联
export function exportUserMain(query) {
  return request({
    url: '/busi/userMain/export',
    method: 'get',
    params: query
  })
}